Servebolt\Optimizer\Utils\DatabaseMigration\MigrationRunner A

Total Complexity 67
Dependencies 0
Dependents 3
Total lines 457
Lines of code 241
Logical lines of code 126
Comment lines 135
Methods 32
Properties 9

Methods 32

Method Rating Maintainability Complexity Lines of code
shouldRunMigration()
A
52 9 26
resolveMigrations()
S
54 5 21
tablesExist()
S
59 5 16
runPreOrPostMigration()
S
62 4 12
ensureBlogInheritsMigratedVersionFromSite()
S
64 4 11
executeMigrationStepsWithMultisiteSupport()
S
59 3 18
runMigration()
S
62 3 12
eligibleForDownMigration()
S
65 3 9
resolveAndRunMigrations()
S
69 3 7
eligibleForUpMigration()
S
64 3 10
checkCurrentMigrationStateAndRunAvailableMigrations()
S
68 2 8
alreadyCompleted()
S
68 2 8
getMigrationDirection()
S
77 2 3
tableExistsByName()
S
76 1 4
getMigratedVersion()
S
80 1 3
setNewMigratedVersion()
S
76 1 4
getAllMigrationFiles()
S
79 1 3
__construct()
S
82 1 3
migrationVersionOptionsKey()
S
79 1 3
handleDeletedSite()
S
73 1 5
handleNewSite()
S
71 1 6
run()
S
80 1 3
cleanUpLegacySiteOption()
S
81 1 3
migrateFromZero()
S
66 1 9
rollbackToZero()
S
66 1 9
runAvailableMigrations()
S
76 1 5
setCurrentMigratedVersion()
S
80 1 3
setCurrentPluginDatabaseVersion()
S
80 1 3
cleanup()
S
80 1 3
remigrate()
S
80 1 3
refresh()
S
77 1 4
clearMigratedVersion()
S
76 1 4